/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package fr.smile.liferay.portlet.news.service.impl;

import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;

import fr.smile.liferay.portlet.news.model.NewsFlag;
import fr.smile.liferay.portlet.news.service.base.NewsFlagServiceBaseImpl;

/**
 * The implementation of the news flag remote service.
 *
 * <p>
 * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link fr.smile.liferay.portlet.news.service.NewsFlagService} interface.
 * </p>
 *
 * <p>
 * Never reference this interface directly. Always use {@link fr.smile.liferay.portlet.news.service.NewsFlagServiceUtil} to access the news flag remote service.
 * </p>
 *
 * <p>
 * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see fr.smile.liferay.portlet.news.service.base.NewsFlagServiceBaseImpl
 * @see fr.smile.liferay.portlet.news.service.NewsFlagServiceUtil
 */
public class NewsFlagServiceImpl extends NewsFlagServiceBaseImpl {
	public NewsFlag addFlag(long userId, long entryId, int value) throws SystemException {
		return newsFlagLocalService.addFlag(userId, entryId, value);
	}

	public void deleteFlag(long flagId) throws PortalException, SystemException {
		newsFlagLocalService.deleteFlag(flagId);
	}

	public void deleteFlags(long entryId) throws SystemException {
		newsFlagLocalService.deleteFlags(entryId);
	}

	public NewsFlag getFlag(long userId, long entryId, int value) throws PortalException, SystemException {
		return newsFlagLocalService.getFlag(userId, entryId, value);
	}
}